package com.be.beadmin.service.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: chenxu
 * @Date: 2023/7/28 20:17
 * @Description: 巡检任务主表
 */
@Table(name="T_DE_InspectTask")
@Data
@Entity
public class InspectTask extends BaseEntity {
    @Column(columnDefinition = "VARCHAR(50) COMMENT '是否已经发送巡检任务通知'")
    private Integer isNotify;

    @Column(columnDefinition = "VARCHAR(50) COMMENT '唯一标识'")
    private String uniqueIdentifier;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '巡检任务号'")
    private String taskId;
    @Column(columnDefinition = "VARCHAR(200) COMMENT '巡检描述'")
    private String taskDesc;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '巡检人'")
    private String inspectBy;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '执行人'")
    private String taskBy;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '状态 未完成/已完成'")
    private String taskState;
    @Column(columnDefinition = "bit COMMENT '超时标记'")
    private boolean timeOut;
    @Column(columnDefinition = "datetime COMMENT '计划时间'")
    private Date planedTime;
    @Column(columnDefinition = "datetime COMMENT '完成时间'")
    private Date finishedTime;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '创建人'")
    private String createBy;
    @Column(columnDefinition = "date COMMENT '更新时间'")
    private Date updateTime;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '更新人'")
    private String updateBy;
    @Column(columnDefinition = "VARCHAR(20) COMMENT '巡检单号'")
    private String inspectId;

}
